const mongoose = require('mongoose');

const taskSchema = new mongoose.Schema({
  title: String,
  complete: {
    type: Boolean,
    default: false
  }
});

const Task = new mongoose.model("Task", taskSchema);

module.exports = Task;